/*2DKpr7ywslQuRN6b8rdNxPtzKy9/BZbv4vfQCGmrZcc/FigrdeXHxBE3B6NmRD8I*/
/*
 * @Author: xiahui
 * @PageInfo: 表体增行
 * @Date: 2019-01-14 15:46:57
 * @Last Modified by: zhr
 * @Last Modified time: 2021-03-04 10:14:13
 */
import { AREA, FIELDS } from '../../constance';
import { RownoUtils } from '../../../../../scmpub/scmpub/pub/tool/cardTableTools';
import { resetShoworderValue } from '../../utils/cardPageUtil';

export default function(props, moduleId) {
	let rowCount = props.cardTable.getNumberOfRows(moduleId);
	let hid = props.form.getFormItemsValue(AREA.cardFormId, 'pk_ct_pu');
	props.cardTable.addRow(moduleId, rowCount, { pk_ct_pu: hid , vchangerate: {display: '1/1',  value: '1/1'} ,vqtunitrate: {display: '1/1',  value: '1/1'} }, true);
	moduleId == AREA.cardTableId ? RownoUtils.setRowNo(props, moduleId, FIELDS.crowno) : '';
	resetShoworderValue(props, moduleId);
}

/*2DKpr7ywslQuRN6b8rdNxPtzKy9/BZbv4vfQCGmrZcc/FigrdeXHxBE3B6NmRD8I*/